package cn.sciento.onelink.sim.communication.ec.message.white;

import cn.sciento.onelink.CommonResponse;
import cn.sciento.onelink.LinkRequest;
import cn.sciento.onelink.utils.ParamUtil;
import cn.sciento.onelink.utils.TransIdUtil;
import lombok.Data;

import java.util.HashMap;

/**
 * 集团客户短信白名单查询
 * @author waltonlee
 */
@Data
public class SimMessageWhiteRequest extends LinkRequest<CommonResponse<SimMessageWhiteResult>> {
    private String appId;
    private String token;
    private String pageSize;
    private String startNum;

    public SimMessageWhiteRequest(String appId, String token, String pageSize, String startNum) {
        super(Method.GET);
        this.appId = appId;
        this.token = token;
        this.pageSize = pageSize;
        this.startNum = startNum;
        this.path = "/ec/query/ec-message-white-list";
        HashMap<String, Object> heahMap = new HashMap<String, Object>();
        this.setHeader(heahMap);
        HashMap<String, Object> bodyMap = new HashMap<String, Object>();
        bodyMap.put("transid", TransIdUtil.generate(appId));
        bodyMap.put("token", token);
        bodyMap.put("pageSize", pageSize);
        bodyMap.put("startNum", startNum);
        this.setCompleteUrl(this.path,bodyMap);
    }
}
